package com.cw2.structural.adapter.obj;

import com.cw2.structural.adapter.MoviePlayer;
import com.cw2.structural.adapter.clazz.JPMoviePlayerAdapter;

/**
 * 适配器模式
 */
public class MainTest {
    public static void main(String[] args) {
        MoviePlayer moviePlayer = new MoviePlayer();
        JPMoviePlayerAdapter adapter = new JPMoviePlayerAdapter(moviePlayer);
        adapter.play();
    }
}
